package com.ezlcp.form.config;


import com.ezlcp.commons.filter.WebContextFilter;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class InterceptorConfig implements WebMvcConfigurer {

    /***
     * @description: 添加Spring MVC 拦截器
     * @author Elwin ZHANG
     * @date 2022/5/7 10:49
     */
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new WebContextFilter()).addPathPatterns("/**");
    }
}